﻿using Aribaccio;
using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security;
using System.Text;
using System.Threading.Tasks;

namespace BDPAutodetect.Models
{
    public partial class MPowerDto : ObservableModel
    {
        /// <summary>
        /// ID编号
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [ObservableProperty]
        protected string name;

        /// <summary>
        /// 父级权限ID
        /// </summary>
        [ObservableProperty]
        protected int parentID;

        /// <summary>
        /// 标记是否菜单(默认0非菜单，1是菜单)
        /// </summary>
        [ObservableProperty]
        protected int menuStatus;

        /// <summary>
        /// 标记是否树形(默认0非树形，1是树形)
        /// </summary>
        [ObservableProperty]
        protected int treeStatus;

        /// <summary>
        /// 内部相对地址
        /// </summary>
        [ObservableProperty]
        protected string? url;

        /// <summary>
        /// 图标名称
        /// </summary>
        [ObservableProperty]
        protected string? inco;

        /// <summary>
        /// 构造函数
        /// </summary>
        public MPowerDto()
        {
            this.Name = string.Empty;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        public MPowerDto(int argID, string argName)
        {
            this.ID = argID;
            this.Name = argName;
        }
    }
}
